$OpenBSD: patch-libgfortran_Makefile_in,v 1.1.1.1 2011/11/14 13:00:57 pascal Exp $
--- libgfortran/Makefile.in.orig	Sat Nov 12 14:00:34 2011
+++ libgfortran/Makefile.in	Sat Nov 12 14:01:28 2011
@@ -485,7 +485,8 @@ LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-
 toolexeclib_LTLIBRARIES = libgfortran.la
 toolexeclib_DATA = libgfortran.spec
 libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS)
-libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(LIBQUADLIB) -lm $(extra_ldflags_libgfortran) $(version_arg)
+include $(top_srcdir)/../libversions
+libgfortran_la_LDFLAGS = $(LIBgfortran_LTVERSION) $(LTLDFLAGS) $(LIBQUADLIB) -lm $(extra_ldflags_libgfortran) $(version_arg)
 libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP)
 myexeclib_LTLIBRARIES = libgfortranbegin.la
 myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)
